#include <func.h>

char* const arguments[] = {"echoall","aaa", "bbb", "ccc", NULL};
char* const environments[] = {"USER=he", "a=A", "b=B", NULL};

int main(int argc, char* argv[])
{
	printf("pid = %d, ppid = %d\n", getpid(), getppid());
	printf("executing execve()\n");

	// execve("echoall", arguments, environments);
	// execlp("echoall", "echoall", "aaa", "bbb", "ccc", NULL);
	execvpe("echoall", arguments, environments);
	printf("You cannot see me\n");
    return 0;
}

